<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const year = prompt("input a year", 2024);

      const r = year > 2024 ? "大了" : year < 2024 ? "小了" : "正确";
      console.log(r);
    </script>
  </body>
</html>
